/**
 * This software was produced for the U. S. Government
 * under Contract No. FA8721-09-C-0002, and is
 * subject to the Rights in Noncommercial Computer Software
 * and Noncommercial Computer Software Documentation Clause
 * (DFARS) 252.227-7014 (JUN 1995)
 * 
 * (c) 2009 The MITRE Corporation. All Rights Reserved.
 *
 * SPMIF to OPNET Translator
 * Author: ewalters
 * Created: 3:01:41 PM, Aug 15, 2007
 * MITRE Corporation
 */
package com.mitre.spmif2opnet;

/**
 * Generic context interface for the visitor patterns 
 *  we use in the application.
 */
public class VisitorContext<T> {
	/**
	 * The contents of the context (generic)
	 */
	private T _elem;
	
	/**
	 * Context constructor
	 * @param elem context contents
	 */
	public VisitorContext(T elem) {
		_elem = elem;
	}
	
	/**
	 * Context mutator
	 * @param elem context contents
	 */
	public void setContext(T elem) {
		_elem = elem;
	}
	
	/**
	 * Context accessor
	 * @return elem context contents
	 */
	public T getContext() {
		return _elem;
	}
}
